package com.bw.service;

import com.bw.RankInfo;
import com.bw.mapper.RankMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class RankServiceImpl implements RankService{

    @Autowired
    RankMapper rankMapper;

    @Transactional
    @Override
    public void addRank(RankInfo rankInfo) {

        rankMapper.addRank(rankInfo);
        int i = 1/0;

        rankMapper.addRank(rankInfo);

    }
}
